package top.lucas9.gulimall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 属性&属性分组关联
 *
 * @author lucas9
 * @email 18188394039@163.com
 * @date 2021-09-02 09:46:10
 */

@TableName("pms_attr_attrgroup_relation")
public class AttrAttrgroupRelationEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 属性id
     */
    private Long attrId;
    /**
     * 属性分组id
     */
    private Long attrGroupId;
    /**
     * 属性组内排序
     */
    private Integer attrSort;

    public AttrAttrgroupRelationEntity() {
    }

    public AttrAttrgroupRelationEntity(Long id, Long attrId, Long attrGroupId, Integer attrSort) {
        this.id = id;
        this.attrId = attrId;
        this.attrGroupId = attrGroupId;
        this.attrSort = attrSort;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAttrId() {
        return attrId;
    }

    public void setAttrId(Long attrId) {
        this.attrId = attrId;
    }

    public Long getAttrGroupId() {
        return attrGroupId;
    }

    public void setAttrGroupId(Long attrGroupId) {
        this.attrGroupId = attrGroupId;
    }

    public Integer getAttrSort() {
        return attrSort;
    }

    public void setAttrSort(Integer attrSort) {
        this.attrSort = attrSort;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AttrAttrgroupRelationEntity{");
        sb.append("id=").append(id);
        sb.append(", attrId=").append(attrId);
        sb.append(", attrGroupId=").append(attrGroupId);
        sb.append(", attrSort=").append(attrSort);
        sb.append('}');
        return sb.toString();
    }
}
